// 设置所有input的样式
input {
    width: 13px;
    height: 13px;
    vertical-align: middle;
}

// 购物车头部 商品数量
.shopping-top {
    height: 50px;
    border-bottom: 2px solid #d9d9d9;
    line-height: 50px;

    // 漂浮的红线
    .floater {
        background: #f40;
        height: 2px;
        width: 100px;
        top: 50px;
        left: 0;
    }

    >span {
        font-size: 18px;
        color: #333;
        margin-right: 30px;
        line-height: 50px;
        i {
            font-style: normal;
            color: red;
        }
    }

    p {
        color: #333;
        line-height: 50px;

        a {
            width: 75px;
            height: 20px;
            background-color: #ff9c00;
            color: white;
            margin-left: 30px;
            margin-top: 15px;
            text-align: center;
            line-height: 20px;
        }
    }
}

// 第一个全选按钮盒子   计算价格
.price {
    height: 40px;
    line-height: 40px;

    .price-left {
        a {
            color: #333;
            margin-left: 40px;
        }
    }

    // 右边计算价格
    .price-right {
        span {
            color: #333;
            margin-left: 40px;

            i {
                color: #e50500;
                font-style: normal;
            }
        }

        span:last-child {
            display: inline-block;
            width: 68px;
            height: 22px;
            line-height: 22px;
            text-align: center;
            color: white;
            background-color: #e50500;
        }
    }
}

//商品部分---店铺名区域
.shop {
    .shop-top {
        height: 40px;
        line-height: 40px;
        border-bottom: 1px solid #d9d9d9;

        span:nth-child(2) {
            font-style: 18px;
            color: #333;
        }

        span:nth-child(3) {
            background-color: #008aff;
            color: white;
            margin-left: 20px;
            margin-left: 10px;
        }

        span:nth-child(4) {
            color: #e50500;
        }
    }

    // 商品内容区域
    ul {
        padding: 16px 20px;
        box-sizing: border-box;

        li {
            height: 142px;

            input {
                margin: 50px 0;
            }

            div {
                float: left;
            }

            img {
                width: 110px;
                height: 110px;
                margin-left: 24px;
                margin-right: 15px;
                border-radius: 5px;
            }

            // 商品图片
            .shop-img {
                width: 400px;

                p {
                    width: 250px;
                    line-height: 26px;
                    margin-bottom: 32px;
                }

                span {
                    display: inline-block;
                    width: 40px;
                    height: 20px;
                    line-height: 20px;
                    text-align: center;
                    color: white;
                    margin-right: 5px;
                }

                span:nth-of-type(1) {
                    background-color: #ff9c00;
                }

                span:nth-of-type(2) {
                    background-color: #00ae39;
                }
            }

            //商品属性
            .shop-attribute {
                margin-left: 50px;

                p {
                    color: #333;
                    line-height: 22px;
                }
            }

            //商品价格区域
            .shop-price {
                margin-left: 95px;
                width: 100px;

                .total-price {
                    font-size: 18px;
                    color: #e50500;
                }

                p {
                    color: #9f9f9f;

                    span {
                        color: #e50500;
                    }
                }
            }

            //商品加减区域
            .shop-amount {
                margin-left: 80px;

                button {
                    width: 40px;
                    height: 30px;
                    border: 0;
                    font-size: 20px;
                }

                input {
                    width: 40px;
                    height: 30px;
                    border: 1px solid #808080;
                    text-align: center;
                    margin: 0;
                }
            }

            //商品删除区域
            .shop-del {
                margin-left: 100px;

                p {
                    color: #646464;
                    line-height: 20px;
                }
            }
        }
    }
}

//广告区域
.ad {
    >p {
        height: 40px;
        border-bottom: 1px solid #eaeaea;
        font-size: 18px;
        color: #333;
        margin-bottom: 30px;
    }

    img {
        width: 175px;
        height: 175px;
        border-radius: 5px;
    }

    ul {
        display: flex;
        justify-content: space-between;
    }

    li {
        p {
            font-size: 16px;
            color: #333;
        }
    }
}